import request from '@/utils/request'
import { GET_USER_INFO } from '@/store/actionTypes'

export const getUserInfo =(formData)=>{
    return async dispatch=>{
        // 发异步请求
          console.log(' 发异步请求formData',formData)
          const res=await request({url:'/user'})
          console.log(res);
          dispatch({
            type:GET_USER_INFO,
            payload:res.data
          })
    }
}